<%--
    Document   : register
    Created on : Jul 14, 2011, 5:28:17 PM
    Author     : northpole
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Edit Profile Page</title>
    </head>
    <body>
      
        <form action="updateUserProfile.jsp" method="POST">

            <%if(session.getAttribute("name")!=null)
                out.write("<input type=\"text\" name=\"name\" placeholder="+session.getAttribute("name")+"/></br>");
            else
                 out.write("<input type=\"text\" name=\"name\" placeholder=\"your New name\" /></br>");
%>

              <%if(session.getAttribute("surname")!=null)
              out.write("<input type=\"text\" name=\"surname\" placeholder="+session.getAttribute("surname")+"/></br>");
        else
            out.write("<input type=\"text\" name=\"surname\" placeholder=\"your New surname\" /></br>");
    %>

    <%if(session.getAttribute("dateOfBirth")!=null)
        out.write(" <input type=\"date\" name=\"dateOfBirth\" placeholder="+session.getAttribute("dateOfBirth")+ "></br>");
        else
            out.write(" <input type=\"date\" name=\"dateOfBirth\" placeholder=\"your birh date\" ></br>")
        ;%>




            <%if(session.getAttribute("Interests")!=null)
        out.write(" <input type=\"text\" name=\"interests\" placeholder="+session.getAttribute("Interests")+"></br>");
        else
             out.write(" <input type=\"text\" name=\"interests\" placeholder=\"your interest\"></br>");

            %>



             <%if(session.getAttribute("welcomeText")!=null)
        out.write(" <input type=\"text\" name=\"welcomeText\" placeholder="+session.getAttribute("welcomeText")+"></br>");
               else
                    out.write(" <input type=\"text\" name=\"welcomeText\" placeholder=\"a welcome Text\" ></br>");
%>

    <a href="deleteProfile.jsp">Delete My Account/Profile</a>
    
            <input type="submit" value="Submit" />
        </form>
    </body>
</html>
